package cn.webrx;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Set3 {
    public static void main(String[] args) {
        Set<Set<String>> set = new HashSet<>();
        set.add(new HashSet<>(List.of("java", "java")));
        set.add(new HashSet<>(List.of("php", "php")));
        set.add(new HashSet<>(List.of("java", "php")));
        set.add(new HashSet<>(List.of("java", "php")));
        set.add(new HashSet<>(List.of("java", "php")));
        set.add(new HashSet<>(List.of("java", "php")));
        set.add(new HashSet<>(List.of("java", "php")));
        System.out.println(set.size());

        //set.clear();
        System.out.println(set.contains(new HashSet<>(List.of("java", "php"))));
        System.out.println(set.contains("java"));

        System.out.println(set);
        for (Set<String> ss : set) {
            System.out.println(ss);
        }


    }
}
